package cn.kgc.service.hystrix;

import cn.kgc.common.vo.Result;
import cn.kgc.emp.entity.Emp;
import cn.kgc.service.feign.EmpServiceFeign;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class EmpServiceHystrix implements EmpServiceFeign {
    @Override
    public Result<List<Emp>> getEmpList() {
        return Result.success("系统繁忙");
    }

    @Override
    public Result<Emp> getEmpById(Integer id) {
        return Result.success("系统繁忙");
    }

    @Override
    public Result<Emp> deleteEmpById(Integer id) {
        return Result.success("系统繁忙");
    }

    @Override
    public Result<Emp> addEmp(Emp emp) {
        return Result.success("系统繁忙");
    }

    @Override
    public Result<Emp> updateEmp(Emp emp) {
        return Result.success("系统繁忙");
    }
}
